﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;

namespace ASPItalia.ModelVirtualCasting.WPF.Common.Messaging
{
    public class ShowDialogMessage : GenericMessage<Object>
    {
        public ShowDialogMessage(object dataContext) : base(dataContext)
        {

        }

        public ShowDialogMessage(object dataContext, Action<Boolean?> callback)
            : this(dataContext)
        {
            this.Callback = callback;
        }

        /// <summary>
        /// Callback when the dialog is closed
        /// </summary>
        public Action<Boolean?> Callback
        {
            get;
            private set;
        }
    }
}
